package com.ch3;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.Thread")
public class ThreadDemo_05 {
    public static void main(String[] args) {
        new Thread(()->{while(true) log.info("{} is running...........",Thread.currentThread().getName());},"th-1").start();
        new Thread(()->{while(true) log.info("{} is running...........",Thread.currentThread().getName());},"th-2").start();
    }
}
